package com.lyx.convertio;


import java.io.*;
import java.util.Scanner;

public class TestCopy01 {
    public static void main(String[] args) throws IOException {

        //BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        Scanner input = new Scanner(System.in);
        BufferedWriter writer = new BufferedWriter(new FileWriter(new File("c:/rea.txt")));

        //String str = input.readLine();
        String str = input.next();
        while ("bye".equals(str)){

            writer.write(str);
            writer.newLine();
            str = input.next();
        }
        //关闭
        input.close();
        writer.close();
    }
}
